package com.springboot.springautowired.javaDesignModel.responsibilityChainModel;

import org.springframework.stereotype.Service;

/**
 * @author mac
 * @date 2021/9/18 5:32 下午
 */
@Service
public class WeixinPayHandler extends PayHandler {
    @Override
    public void pay(String code) {
        if ("weixin".equals(code)) {
            System.out.println("===发起微信支付===");
        } else {
            getNext().pay(code);
        }
    }
}
